package com.yupi.project.service;

import com.yupi.project.model.dto.product.ProductAddRequest;
import com.yupi.project.model.dto.product.ProductUpdateRequest;
import com.yupi.project.model.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Lenovo
* @description 针对表【product(产品表)】的数据库操作Service
* @createDate 2023-07-12 11:17:00
*/
public interface ProductService extends IService<Product> {


    /**
     * 实现保存产品
     * */
    Long saveProduct(ProductAddRequest productAddRequest);

    /**
     * 修改
     * */
    Long updateProduct(ProductUpdateRequest productUpdateRequest);


    /**
     * 删除
     * */
    Boolean deleteProduct(Long id);
}
